﻿<UserControl x:Class="ViewParametrerDeroulement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:OMANE.Modules.PMT"
             xml:lang="fr-FR"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <GridSplitter Grid.Row="1" Grid.ColumnSpan="3" Height="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
        <GridSplitter Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

        <GroupBox Header="Taux estimés  à partir de l'histo crt" >
            <local:AdvancedDatagrid x:Name="HistoCrtDgrid" Margin="5" ItemsSource="{Binding ListeDerouleHistoCRT}" IsReadOnly="True"  >
                <local:AdvancedDatagrid.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="Estimer à partir du CRT" Click="Estimer_CRT_MenuItem_Click" />
                    </ContextMenu>
                </local:AdvancedDatagrid.ContextMenu>
            </local:AdvancedDatagrid>

        </GroupBox>
        <GroupBox Grid.Row="2" Header="Taux envoyés par cbp">
            <local:AdvancedDatagrid  x:Name="CbpDgrid"   Margin="5" ItemsSource="{Binding ListeDerouleCBP}" IsReadOnly="True"/>
        </GroupBox>
        <GroupBox Grid.Column="2" Grid.RowSpan="3" Header="Table final">
            <local:AdvancedDatagrid  Margin="5" ItemsSource="{Binding ListeDeroule}" CanUserAddRows="False">
                <local:AdvancedDatagrid.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="Reinitialiser la table" Click="Reinitialiser_Table_MenuItem_Click" />
                    </ContextMenu>
                </local:AdvancedDatagrid.ContextMenu>
            </local:AdvancedDatagrid>
        </GroupBox>


        <Button Content=" >>> " Margin="5" Name="BtSetCRT" Grid.Column="1" VerticalAlignment="Center" Padding="2" />
        <Button Content=" >>> " Margin="5" Name="BtSetCBP" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" Padding="2" />


    </Grid>
</UserControl>
